package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 审批流程记录主表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "approval_record")
public class ApprovalRecord {
    /**
     * 主键ID
     */
    @TableId(value = "record_id", type = IdType.INPUT)
    private Integer recordId;

    /**
     * 发起审批的人
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 审批类型ID，根据审批类型id查询到发起审批的数据
     */
    @TableField(value = "type_id")
    private Integer typeId;
}